package com.briup.ch07;

/**
 * @Author briup-adam
 * @Date 2023/10/10 上午10:30
 * @Description
 **/

public class Monkey extends Animal2 implements IJumpAble, IRideAble {
    private String kind;

    public Monkey(String name, String kind) {
        super(name);
        this.kind = kind;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    @Override
    public void jump() {
        System.out.println("可以跳火圈");
    }

    @Override
    public void ride() {
        System.out.println("可以骑自行车");
    }
}
